package com.spring.demo3.eg3;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @author vhans
 */
// 关闭默认过滤器,只让被注解@MyBean标注的类也注入容器中
@ComponentScan(
        useDefaultFilters = false,
        includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, classes = MyBean.class)})
public class ScanBean5 {
}
